FROM 172.16.101.49/base/tomcat7_jdk7:2.2.2

VOLUME /data

ADD mvcdo-1.0.0.tar.gz /tmp/apache-tomcat-7.0.59/webapps/mvcdo

RUN mkdir -p /home/jyapp && ln -sf /tmp/apache-tomcat-7.0.59/webapps/mvcdo /home/jyapp

ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ENV LC_ALL "zh_CN.UTF-8"
EXPOSE 8080

ENV ENABLE_PINPOINT=true
ENV PINPOIN_COLLECTOR=172.18.100.176
ENV APP_NAME=mvcdo
ENV PINPOIN_AGENTNAME=jc1

ENV JAVA_OPTS="-Xms1024m -Xmx1024m -Xss1024K -XX:PermSize=256m -XX:MaxPermSize=256m "